{include file="index/header" /}


<div class="row">
    <div class="col-xs-12 col-sm-12 col-md-12">
        <div class="page-header">
            <h2 style="color: #337ab7;"><span class="glyphicon glyphicon-user" aria-hidden="true"></span> 网站概况 访问明细
                <small> 今日IP：<span style="color: red">{$yesterday->total()}</span> </small></h2>

        </div>
        <div class="tabbable" id="tabs-323015">
            <ul class="nav nav-tabs">

                <li class="active">
                    <a href="#panel-401557" data-toggle="tab">访问总数 <span class="badge">{$list_all->total()}</span></a>
                </li>
                <li>
                    <a href="#panel-802666" data-toggle="tab">IP数量<span class="badge">{$yesterday->total()}</span></a>
                </li>
                <li>
                    <a href="#panel-all" data-toggle="tab">会员访问量 <span class="badge">{$list->total()}</span></a>
                </li>


            </ul>
            <div class="tab-content">

                <div class="tab-pane active" id="panel-401557">
                    <div class="table-responsive" style="margin-top: 20px">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th> 时间</th>
                                <th> 用户/Ip</th>
                                <th> 访问路径</th>
                                <th> 详情</th>
                            </tr>
                            </thead>

                            <tbody>
                            {volist name='list_all' id='user' key="k"}

                            <tr>
                                <td> {$user.create_time}</td>
                                <td>
                                    <a class="user" data-user_id="{$user.user_id}" href="{:url('index/member/home',['user_id'=>$user.user_id])} ">{$user.user.nickname?$user.user.nickname:
                                        $user.user_id} </a>
                                    ({$user.ip})  {$user.human.danger}
                                </td>
                                <td>

                                    <a href="__ROOT__/{$user.path}" data-toggle="tooltip" data-placement="bottom"
                                       title="{$user.shop.title}">{$user.path|substr=0,20}</a></td>
                                <script>
                                    $(function () {
                                        $('[data-toggle="tooltip"]').tooltip()
                                    })
                                </script>
                                <td>
                                    <span class="label label-success">{$user.ipinfo.region}</span>
                                    <span class="label label-default">{$user.ipinfo.isp}</span>
                                    <span class="label label-primary">{$user.agentlink.browser}</span>
                                    <span class="label label-info">{$user.agentlink.platform}</span>
                                    <span class="label label-warning">{$user.agentlink.language}</span>
                                    <span class="label label-danger">{$user.agentlink.device}</span>
                                    <a href="{$user.agentlink.referer}" target="_blank"><span
                                            class="label label-default">{$user.agentlink.referer?'来路':''}</span></a>

                                </td>
                            </tr>

                            {/volist}
                            </tbody>
                        </table>
                    </div>

                </div>
                <div class="tab-pane " id="panel-802666">
                    <div class="table-responsive" style="margin-top: 20px">
                        <table class="table table-hover table-bordered">
                            <thead>
                            <tr>
                                <th> 时间</th>
                                <th> 用户/Ip</th>
                                <th> 最新访问路径</th>
                                <th> 详情</th>
                            </tr>
                            </thead>

                            <tbody>
                            {volist name='yesterday' id='user' key="k"}

                            <tr>
                                <td> {$user.create_time}</td>
                                <td>
                                    <a href="{:url('index/member/home',['user_id'=>$user.user_id])} ">{$user.user.nickname?$user.user.nickname:
                                        $user.user_id} </a>
                                    <a href="{:url('index/user/human',['ip'=>$user.ip,'web'=>1])}"
                                       title="{$user.human.address}">{$user.ip}</a>
                                    {$user.human.scene}{$user.human.score}  {$user.human.danger}

                                </td>
                                <td><a href="__ROOT__/{$user.path}">{$user.path|substr=0,20}</a></td>

                                <td>
                                    <span class="label label-success">{$user.ipinfo.region}</span>
                                    <span class="label label-default">{$user.ipinfo.isp}</span>
                                    <span class="label label-primary">{$user.agentlink.browser}</span>
                                    <span class="label label-info">{$user.agentlink.platform}</span>
                                    <span class="label label-warning">{$user.agentlink.language}</span>
                                    <span class="label label-danger">{$user.agentlink.device}</span>
                                    <a href="{$user.agentlink.referer}" target="_blank"><span
                                            class="label label-default">{$user.agentlink.referer?'来路':''}</span></a>

                                </td>

                            </tr>

                            {/volist}
                            </tbody>
                        </table>
                    </div>

                </div>
                <div class="tab-pane " id="panel-all">
                    <div class="table-responsive">
                        <table class="table table-hover table-bordered" style="margin-top: 20px">
                            <thead>
                            <tr>
                                <th> 时间</th>
                                <th> 用户/Ip</th>
                                <th> 访问路径</th>
                                <th> 详情</th>
                            </tr>
                            </thead>

                            <tbody>
                            {volist name='list' id='user' key="k"}

                            <tr>
                                <td> {$user.create_time}</td>
                                <td>
                                    <a href="{:url('index/member/home',['user_id'=>$user.user_id])}  ">{$user.user.nickname?$user.user.nickname:
                                        $user.user_id} </a>({$user.ip})
                                </td>
                                <td><a href="__ROOT__/{$user.path}">{$user.path|substr=0,20}</a></td>

                                <td>
                                    <span class="label label-success">{$user.ipinfo.region}</span>
                                    <span class="label label-default">{$user.ipinfo.isp}</span>
                                    <span class="label label-primary">{$user.agentlink.browser}</span>
                                    <span class="label label-info">{$user.agentlink.platform}</span>
                                    <span class="label label-warning">{$user.agentlink.language}</span>
                                    <span class="label label-danger">{$user.agentlink.device}</span>
                                    <a href="{$user.agentlink.referer}" target="_blank"><span
                                            class="label label-default">{$user.agentlink.referer?'来路':''}</span></a>


                                </td>
                            </tr>


                            {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>


            </div>
        </div>
    </div>

</div>

